package com.project.frba.bi.extraction.fileXLS;

import java.io.File; 
import java.io.IOException;
import java.util.Date; 
import jxl.*;

import jxl.Workbook;
import jxl.read.biff.BiffException;
import jxl.read.biff.SheetImpl;

public class FileXLS {
	Workbook workbook;
	String path;
	
	public FileXLS(String path){
		this.path= path;
		try {
			this.workbook = Workbook.getWorkbook(new File(path));
		} catch (BiffException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	
	public Sheet getSheet(){
		Sheet sheet=this.workbook.getSheet(0); 
		return sheet;
	}
	public Sheet getSheet(int sheetNumber){
		Sheet sheet=this.workbook.getSheet(sheetNumber); 
		return sheet;
	}
	
	
	
	
	
}
